package org.future.esb.component;

import java.util.ArrayList;
import java.util.List;

/**
 *@date   2010-4-12 下午08:21:43
 *@author dycc
 *@file   org.future.esb.component.MethodEntryPointResolver.java
 */
public class MethodEntryPointResolver {
	private String tagName = "method-entry-point-resolver";
	private boolean transformFirst = false;
	private boolean acceptVoidMethods = false;
	private List<IncludeEntryPoint> includes = new ArrayList<IncludeEntryPoint>();
	/**
	 * toString
	 */
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("<" + tagName);
		sb.append(" transformFirst=\"" + isTransformFirst() + "\"");
		sb.append(" acceptVoidMethods\"" + isAcceptVoidMethods() + "\"");
		sb.append(">");
		sb.append("\r\n");
		// add childs
		for(int i=0;i<includes.size();i++){
			sb.append(includes.get(i));
			sb.append("\r\n");
		}
		// add end element
		sb.append("</" + tagName + "\"");
		return sb.toString();
	}
	public String getTagName() {
    	return tagName;
    }
	public void setTagName(String tagName) {
    	this.tagName = tagName;
    }
	public boolean isTransformFirst() {
    	return transformFirst;
    }
	public void setTransformFirst(boolean transformFirst) {
    	this.transformFirst = transformFirst;
    }
	public boolean isAcceptVoidMethods() {
    	return acceptVoidMethods;
    }
	public void setAcceptVoidMethods(boolean acceptVoidMethods) {
    	this.acceptVoidMethods = acceptVoidMethods;
    }
	public List<IncludeEntryPoint> getIncludes() {
    	return includes;
    }
	public void setIncludes(List<IncludeEntryPoint> includes) {
    	this.includes = includes;
    }
	
}
